#!/usr/bin/perl
use strict;
use warnings;
use 5.010;
use English qw( -no_match_vars );

use Test::More;

use IPC::Run qw( run );
my $in = '';
my $out;
my $err;
my $cmd;

$cmd = [
    '@abs_top_builddir@/ldap-git-backup',
    '--help',
];
ok( run($cmd, \$in, \$out, \$err), 'option --help should be allowed' );
like( $out, qr{--help}, 'the --help option should be mentioned' );

done_testing();
